package com.terren.spider.entity.core;

public class SpiderTask {

	private Long taskId;//任务id
	private Integer sourceId;//搜索来源（百度，搜狗，谷歌等）
	private String sourceName;
	private String keyword;//关键词
	private String excludeKeyword;//不包含的关键词，多个以逗号隔开
	private String logTime;//任务时间
	private Integer status;//状态：  0 等待抓取   1抓取完成 -1抓取失败   9 抓取正在进行
	private String beginTime;//搜索开始时间
	private String endTime;//搜索结束
	private Integer limit;//搜索条目
	private String site;//站点名称
	private Integer retryTimes = 0;//失败重试次数
	
	private String act;//entry标示
	private Boolean flag=false;//是否处理过关键词（相同sourceId不同entry的同一任务）
	
	public Boolean getFlag() {
		return flag;
	}
	public void setFlag(Boolean flag) {
		this.flag = flag;
	}
	public String getAct() {
		return act;
	}
	public void setAct(String act) {
		this.act = act;
	}
	public String getExcludeKeyword() {
		return excludeKeyword;
	}
	public void setExcludeKeyword(String excludeKeyword) {
		this.excludeKeyword = excludeKeyword;
	}
	public Integer getRetryTimes() {
		return retryTimes;
	}
	public void setRetryTimes(Integer retryTimes) {
		this.retryTimes = retryTimes;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Long getTaskId() {
		return taskId;
	}
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}
	public Integer getSourceId() {
		return sourceId;
	}
	public void setSourceId(Integer sourceId) {
		this.sourceId = sourceId;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getLogTime() {
		return logTime;
	}
	public void setLogTime(String logTime) {
		this.logTime = logTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getSourceName() {
		return sourceName;
	}
	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
}
